//
//  DataBaseSingleton.h
//  SELF 豆瓣
//
//  Created by dllo on 15/11/7.
//  Copyright (c) 2015年 蓝鸥科技. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Movie.h"
#import "user.h"
#import "movieShouCang.h"
@interface DataBaseSingleton : NSObject
+(instancetype)shareDataBase;
//打开数据库
-(void)openDB;
//----------电影表---------
-(void)createMovieTable;
-(void)insertMovieStr:(Movie*)movie;
-(NSMutableArray*)selectMovie;
-(void)dropMovieTbele;

//---------用户表------------
-(void)createUserTable;
-(void)insertStudent:(user*)myuser;
-(NSMutableArray*)selectUser;

//-------------电影收藏表----------

-(void)createShouCangTable;
-(void)insertShouCang:(movieShouCang*)mshou;
-(NSMutableArray*)selectAllShouCang;
-(void)deleteCollectings:(NSString *)moviename name:(NSString *)name;
-(void)dropMovieShouCangTbele;
@end
